﻿using DAL;
using Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BAL
{
    public class Control_Passenger
    {
        Data_Passenger var = new Data_Passenger();
        #region[Passenger_Insert]
        public void Passenger_Insert(Passenger data)
        {
            var.Passenger_Insert(data);
        }
        #endregion

        #region[Passenger_Update_Info]
        public void Passenger_Update_Info(Passenger data)
        {
            var.Passenger_Update_Info(data);
        }
        #endregion

        #region[Passenger_Update_Pass]
        public void Passenger_Update_Pass(Passenger data)
        {
            var.Passenger_Update_Pass(data);
        }
        #endregion

        #region[Passenger_CheckLogin]
        public bool Passenger_CheckLogin(string username,string pass)
        {
            return var.Passenger_CheckLogin(username, pass);
        }
        #endregion

        #region[Passenger_Delete]
        public void Passenger_Delete(Passenger data)
        {
            var.Passenger_Delete(data);
        }
        #endregion

        #region[Passenger_GetAll]
        public DataTable Passenger_GetAll()
        {
            return var.Passenger_GetAll();
        }

        #endregion

        #region[Passenger_GetByName]
        public DataTable Passenger_GetByName(string username)
        {
            return var.Passenger_GetByName(username);
        }

        #endregion
    }
}
